package com.twotigers.tenthpower;

import io.renren.common.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@MapperScan("com.twotigers.tenthpower.mapper")
public class TensquareBase {
    public static void main(String[] args) {
        SpringApplication.run(TensquareBase.class,args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
